package com.example.project;

import java.util.ArrayList;
import java.util.List;

public class MiddleBianli {

    private static void inOrderTraversal(TreeNode node){
        List<Integer> list = new ArrayList<>();


    }

    public void inOrder(TreeNode root,List list){
        if (root == null){
            return;
        }
        inOrder(root.left,list);//访问zuo
        list.add(root.val);
        inOrder(root.right,list);
    }






    public static void main(String[] args) {

    }


}
